package com.zhang.proxy.example;

/**
 * @author ElloeStudy(Sifa Zhang)
 * @create 2022-02-26 16:44
 * To: 真常应物，真常得性，常清常静，常清静矣
 */
public class WanPo implements KindWomen{
    private KindWomen kindWomen;

    public WanPo() {
        this.kindWomen = new PanJinLian();
    }

    public WanPo(KindWomen kindWomen) {
        this.kindWomen = kindWomen;
    }

    @Override
    public void makeEyesWithMan() {
        this.kindWomen.makeEyesWithMan();  //王婆只负责接单，具体的工作交给具体的人，她是一个代理人
    }

    @Override
    public void happyThing() {
        this.kindWomen.happyThing(); //王婆只负责接单，具体的工作交给具体的人，她是一个代理人
    }
}
